import { Rule, RuleType } from "@midwayjs/validate";

export enum UserStatus{
    NORMAL = 1,
    BANNED = 2,
}

export class UserLoginDTO{
    @Rule(RuleType.string().required().min(6).max(16))
    username:string;

    @Rule(RuleType.string().required().min(8).max(32))
    password:string;
}

